import request from './request.js'
const path = "/"
const API = {
    getContext: function (entrypoint, overridepath = undefined) {
        if (entrypoint.indexOf('/') != 0) {
            entrypoint = path + entrypoint
        }
        if (overridepath != undefined) {
            entrypoint = overridepath + entrypoint
        }
        return request({
            url: entrypoint,
            method: "get"
        })
    }
}

export default API